//
//  DateUtil.h
//  iphone.mobileoa
//  日期相关帮助类
//  Created by 李亚春 on 13-5-24.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DateUtil : NSObject

//获取系统当前时间字符串，格式为yyyy-MM-dd HH:mm:ss
+(NSString *)getCurrentTimeStr;

//获取一个日期当月天数
+(int)numDaysInMonth:(NSDate*)_date;

//获取日期格式为yyyy-MM的字符串
+(NSString *)getCurrentYMStr:(NSDate *)_date;

+(NSString *)getCurrentYMDStr:(NSDate *)_date;

+(NSString *)getDoubleDateStrByInt:(int)date;

+(NSString *)getTimeStr:(NSDate *)_date;

//将某格式日期字符串转为日期类型
+(NSDate *)convertStr2Date:(NSString *)timestr format:(NSString *)format;

+(NSString *)convertDate2FormatStr:(NSDate *)_date format:(NSString *)format;
@end
